package com.huika.dealontop.support.domain;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 商家主页类
 * Created by huhao on 2015/11/24.
 */
public class MerchantDetailBean {

    /**
     * merchantID : 1454
     * merchantImage : dsdf.jpg
     * environment : 5.0
     * services : 5.0
     * cost : 5.0
     * productAvgEvaluate : 5.0
     * evaluateNum : 600
     * merchantPhone : 0936363636
     * merchantName : 朝天门火锅
     * saleTime : 周一到周五18:00-20:00,周六到周天:9:00—22:00
     * merchantService : 免费WIF、上门服务
     * merchantAddress : 团结大道友谊路
     * longitude : 152.2651221
     * latitude : 24.12515152
     * cityId : 24
     */

    private String merchantID;
    private String merchantImage;
    private float environment;
    private float services;
    private float cost;
    private float productAvgEvaluate;
    private String evaluateNum;
    private String merchantPhone;
    private String merchantName;
    private String saleTime;
    private String merchantAddress;
    private String longitude;
    private String latitude;
    private MerchantServiceBean MerchantServices;
    private String cityId;
    private String brandLogoURL;//商家log图片
    private String ext;//分机号码

    public String getBrandLogoURL() {
        return brandLogoURL;
    }

    public void setBrandLogoURL(String brandLogoURL) {
        this.brandLogoURL = brandLogoURL;
    }

    public MerchantServiceBean getMerchantServices() {
        return MerchantServices;
    }

    public void setMerchantServices(MerchantServiceBean merchantServices) {
        MerchantServices = merchantServices;
    }

    public void setMerchantID(String merchantID) {
        this.merchantID = merchantID;
    }

    public void setMerchantImage(String merchantImage) {
        this.merchantImage = merchantImage;
    }

    public void setEnvironment(float environment) {
        this.environment = environment;
    }

    public void setServices(float services) {
        this.services = services;
    }

    public void setCost(float cost) {
        this.cost = cost;
    }

    public void setProductAvgEvaluate(float productAvgEvaluate) {
        this.productAvgEvaluate = productAvgEvaluate;
    }

    public void setEvaluateNum(String evaluateNum) {
        this.evaluateNum = evaluateNum;
    }

    public void setMerchantPhone(String merchantPhone) {
        this.merchantPhone = merchantPhone;
    }

    public void setMerchantName(String merchantName) {
        this.merchantName = merchantName;
    }

    public void setSaleTime(String saleTime) {
        this.saleTime = saleTime;
    }


    public void setMerchantAddress(String merchantAddress) {
        this.merchantAddress = merchantAddress;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public void setCityId(String cityId) {
        this.cityId = cityId;
    }

    public String getMerchantID() {
        return merchantID;
    }

    public String getMerchantImage() {
        return merchantImage;
    }

    public float getEnvironment() {
        return environment;
    }

    public float getServices() {
        return services;
    }

    public float getCost() {
        return cost;
    }

    public float getProductAvgEvaluate() {
        return productAvgEvaluate;
    }

    public String getEvaluateNum() {
        return evaluateNum;
    }

    public String getMerchantPhone() {
        return merchantPhone;
    }

    public String getMerchantName() {
        return merchantName;
    }

    public String getSaleTime() {
        return saleTime;
    }


    public String getMerchantAddress() {
        return merchantAddress;
    }

    public String getLongitude() {
        return longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public String getCityId() {
        return cityId;
    }

    public String getExt() {
        return ext;
    }

    public void setExt(String ext) {
        this.ext = ext;
    }

    public static class MerchantServiceBean implements Parcelable {
        private boolean IsDessert;
        private boolean IsDoorService;
        private boolean IsFreeDrinks;
        private boolean IsFreeParking;
        private boolean IsFreeWifi;
        private boolean IsGift;

        public MerchantServiceBean(Parcel in) {
            IsDessert = in.readByte() != 0;
            IsDoorService = in.readByte() != 0;
            IsFreeDrinks = in.readByte() != 0;
            IsFreeParking = in.readByte() != 0;
            IsFreeWifi = in.readByte() != 0;
            IsGift = in.readByte() != 0;
        }

        public static final Creator<MerchantServiceBean> CREATOR = new Creator<MerchantServiceBean>() {
            @Override
            public MerchantServiceBean createFromParcel(Parcel in) {
                return new MerchantServiceBean(in);
            }

            @Override
            public MerchantServiceBean[] newArray(int size) {
                return new MerchantServiceBean[size];
            }
        };

        public void setIsDessert(boolean IsDessert) {
            this.IsDessert = IsDessert;
        }

        public void setIsDoorService(boolean IsDoorService) {
            this.IsDoorService = IsDoorService;
        }

        public void setIsFreeDrinks(boolean IsFreeDrinks) {
            this.IsFreeDrinks = IsFreeDrinks;
        }

        public void setIsFreeParking(boolean IsFreeParking) {
            this.IsFreeParking = IsFreeParking;
        }

        public void setIsFreeWifi(boolean IsFreeWifi) {
            this.IsFreeWifi = IsFreeWifi;
        }

        public void setIsGift(boolean IsGift) {
            this.IsGift = IsGift;
        }

        public boolean isIsDessert() {
            return IsDessert;
        }

        public boolean isIsDoorService() {
            return IsDoorService;
        }

        public boolean isIsFreeDrinks() {
            return IsFreeDrinks;
        }

        public boolean isIsFreeParking() {
            return IsFreeParking;
        }

        public boolean isIsFreeWifi() {
            return IsFreeWifi;
        }

        public boolean isIsGift() {
            return IsGift;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeByte((byte) (IsDessert ? 1 : 0));
            dest.writeByte((byte) (IsDoorService ? 1 : 0));
            dest.writeByte((byte) (IsFreeDrinks ? 1 : 0));
            dest.writeByte((byte) (IsFreeParking ? 1 : 0));
            dest.writeByte((byte) (IsFreeWifi ? 1 : 0));
            dest.writeByte((byte) (IsGift ? 1 : 0));
        }
    }
}
